import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import 'babel-polyfill' // es6语法转译
import lazyload from 'vue-lazyload'
import 'common/stylus/index.styl'
Vue.use(VueAxios, axios)
Vue.use(lazyload)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
  // data: {
  //   // 空的实例放到根组件下，所有的子组件都能调用
  //   Bus: new Vue()
  // }
})
